﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ruminate.GUI.Framework;
using Microsoft.Xna.Framework.Content;
using Ruminate.GUI.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace SharedLib.UI
{
    public class NewTheme : Theme
    {

        public NewTheme(ContentManager gameContent, RuminateGUI gui)
            : base(gui)
        {

            ThemeDictionary.Add("Panel",
                new BorderRenderer(
                    gameContent.Load<Texture2D>("UI/pan"),
                    6,          //Border Width
                    8,          //Stencil Background
                    32,         //Background
                    gui));

            ThemeDictionary.Add("CheckBox",
                new IconRenderer(gameContent.Load<Texture2D>("UI/checkboxes"),
                    new Point(16, 16),
                    4,
                    gui));

            ThemeDictionary.Add("Radio",
                new IconRenderer(
                    gameContent.Load<Texture2D>("UI/radios"),
                    new Point(16, 16),
                    4,
                    gui));

            ThemeDictionary.Add("Button",
                new SlidingDoorRenderer(
                    gameContent.Load<Texture2D>("UI/button"),
                    19,
                    1,
                    3,
                    8,
                    3,
                    gui));

            ThemeDictionary.Add("ScrollBar",
                new SlidingDoorRenderer(
                    gameContent.Load<Texture2D>("UI/bar"),
                    16,     //Height
                    1,      //Center Width
                    2,      //End Width
                    2,      //Background
                    1,      //Depth
                    gui));

            ThemeDictionary.Add("ScrollBarHolder",
                new SlidingDoorRenderer(
                    gameContent.Load<Texture2D>("UI/holder"),
                    16,     //Height
                    1,      //Center Width
                    16,     //End Width
                    2,      //Background
                    2,      //Depth
                    gui));

            ThemeDictionary.Add("TextRenderer",
                new TextRenderer(
                    gameContent.Load<SpriteFont>("UI/UI"),
                    gameContent.Load<Texture2D>("UI/cursor"),
                    Color.Black,
                    gui));
        }
    }
}
